<div class="tms-main-page-function">
    <div class="main-content">
        <div class="page-function">
            <ul class="wms-wbm-fun-left">
                <div class="layui-btn upload_btn" ng-click="importData()">
                    导入
                </div>
                <button class="layui-btn" ng-click="printQrClick()">打印二维码</button>
                <button class="layui-btn" ng-click="printCarMentionedReceiptClick()">打印提车交接单</button>
            </ul>
            <div class="wms-wbm-fun-right">
                <input type="text" placeholder="车架号-->回车查询" ng-model="search.vin"
                       ng-keydown="searchListKeyDown($event)" class="search-input">
                <button class="layui-btn" ng-click="moreClick()" ng-bind="moreText">更多条件</button>
                <i class="iconfont icon-shuaxin layui-anim layui-anim-loop layui-anim-rotate wms-refresh"
                   ng-click="refreshClick()" refresh></i>
            </div>
        </div>
        <div class="otherForm" ng-show="otherForm">
            <ul>
                <li>
                    <div class="otherFormItem">
                        <div>货主</div>
                        <div>
                            <ui-select ng-model="dropDownDefault.shipper">
                                <ui-select-match>
                                    <span ng-bind="$select.selected.wnhCustomerName"></span>
                                </ui-select-match>
                                <ui-select-choices repeat="shipper in (dropDownList.shipper | filter: $select.search)">
                                    <span ng-bind="shipper.wnhCustomerName"></span>
                                </ui-select-choices>
                                <ui-select-no-choice>
                                    没有加载到数据
                                </ui-select-no-choice>
                            </ui-select>
                        </div>
                    </div>
                    <div class="otherFormItem">
                        <div>车型</div>
                        <div>
                            <ui-select ng-model="dropDownDefault.vehicleSpec">
                                <ui-select-match>
                                    <span ng-bind="$select.selected.wndVehicleName"></span>
                                </ui-select-match>
                                <ui-select-choices
                                        repeat="vehicleSpec in (dropDownList.vehicleSpec | filter: $select.search)">
                                    <span ng-bind="vehicleSpec.wndVehicleName"></span>
                                </ui-select-choices>
                                <ui-select-no-choice>
                                    没有加载到数据
                                </ui-select-no-choice>
                            </ui-select>
                        </div>
                    </div>
                    <div class="otherFormItem">
                        <div>颜色</div>
                        <div>
                            <ui-select ng-model="dropDownDefault.carColour">
                                <ui-select-match>
                                    <span ng-bind="$select.selected.wndColorName"></span>
                                </ui-select-match>
                                <ui-select-choices
                                        repeat="carColour in (dropDownList.carColour | filter: $select.search)">
                                    <span ng-bind="carColour.wndColorName"></span>
                                </ui-select-choices>
                                <ui-select-no-choice>
                                    没有加载到数据
                                </ui-select-no-choice>
                            </ui-select>
                        </div>
                    </div>
                    <div class="otherFormItem">
                        <div>状态</div>
                        <div>
                            <ui-select ng-model="dropDownDefault.status">
                                <ui-select-match>
                                    <span ng-bind="$select.selected.name"></span>
                                </ui-select-match>
                                <ui-select-choices repeat="status in (dropDownList.status | filter: $select.search)">
                                    <span ng-bind="status.name"></span>
                                </ui-select-choices>
                                <ui-select-no-choice>
                                    没有加载到数据
                                </ui-select-no-choice>
                            </ui-select>
                        </div>
                    </div>
                </li>

                <li>
                    <div class="otherFormItem">
                        <div>下线日期</div>
                        <div>
                            <input type="text" lay-verify="date" placeholder="yyyy-mm-dd"
                                   ng-model="search.asnOfflineDateStart" ng-click="Tools.modelAssignment($event,this)"
                                   autocomplete="off" class="layui-input"
                                   onclick="layui.laydate({elem: this,format:'YYYY-MM-DD',choose : angular.element(this).scope().Tools.modelAssignment,scope:angular.element(this).scope()})">
                        </div>
                    </div>
                    <div class="otherFormItem">
                        <div>至</div>
                        <div>
                            <input type="text" lay-verify="date" placeholder="yyyy-mm-dd"
                                   ng-model="search.asnOfflineDateEnd" ng-click="Tools.modelAssignment($event,this)"
                                   autocomplete="off" class="layui-input"
                                   onclick="layui.laydate({elem: this,format:'YYYY-MM-DD',choose : angular.element(this).scope().Tools.modelAssignment,scope:angular.element(this).scope()})">
                        </div>
                    </div>
                    <div class="otherFormItem">
                        <div>验车交接时间</div>
                        <div>
                            <input type="text" lay-verify="date" placeholder="yyyy-mm-dd"
                                   ng-model="search.asnCheckTransferDateStart"
                                   ng-click="Tools.modelAssignment($event,this)" autocomplete="off" class="layui-input"
                                   onclick="layui.laydate({elem: this,format:'YYYY-MM-DD',choose : angular.element(this).scope().Tools.modelAssignment,scope:angular.element(this).scope()})">
                        </div>
                    </div>
                    <div class="otherFormItem">
                        <div>至</div>
                        <div>
                            <input type="text" lay-verify="date" placeholder="yyyy-mm-dd"
                                   ng-model="search.asnCheckTransferDateEnd"
                                   ng-click="Tools.modelAssignment($event,this)" autocomplete="off" class="layui-input"
                                   onclick="layui.laydate({elem: this,format:'YYYY-MM-DD',choose : angular.element(this).scope().Tools.modelAssignment,scope:angular.element(this).scope()})">
                        </div>
                    </div>
                </li>

                <li>
                    <div class="otherFormItem otherFormItemButton">
                        <button class="layui-btn" ng-click="searchClick()">查询</button>
                        <button class="layui-btn" ng-click="resetClick()">重置</button>
                    </div>
                </li>
            </ul>
        </div>
        <div class="layui-form scrollTable">
            <table class="layui-table wms_wbm_main_table serial minScreen asnTable" style="width : 2500px;">
                <tbody>
                <tr>
                    <th>
                        <input type="checkbox" name="" lay-skin="primary" lay-filter="allChoose">
                        <div class="layui-unselect layui-form-checkbox" lay-skin="primary">
                            <i class="layui-icon"></i>
                        </div>
                    </th>
                    <th>ASN单号</th>
                    <th>状态</th>
                    <th>验车结果</th>
                    <th>验车结果描述</th>
                    <th>验车交接时间</th>
                    <th>车架号(VIN码)</th>
                    <th>车型代码</th>
                    <th>车型名称</th>
                    <th>物料代码</th>
                    <th>物料名称</th>
                    <th>颜色代码</th>
                    <th>颜色名称</th>
                    <th>货主</th>
                    <th>生产日期</th>
                    <th>发动机号</th>
                    <th>合格证</th>
                    <th>下线日期</th>
                    <th>变速箱号</th>
                    <th>备注</th>
                </tr>
                <tr ng-repeat="notice in noticeList" ng-click="Tools.initTableClick($event)">
                    <td>
                        <input type="checkbox" name="ckValue" ng-value="$index" lay-skin="primary"/>
                        <div class="layui-unselect layui-form-checkbox" lay-skin="primary">
                            <i class="layui-icon"></i>
                        </div>
                    </td>
                    <td ng-bind="notice.wnhUnlcnOrderNo"></td>
                    <td ng-bind="notice.inspectStatus | checkCarStatusFilter"></td>
                    <td ng-bind="notice.odCheckResult | checkCarResultFilter"></td>
                    <td ng-bind="notice.odCheckDesc"></td>
                    <td ng-bind="notice.inspectTime"></td>
                    <td ng-bind="notice.detailList[0].wndVin"></td>
                    <td ng-bind="notice.detailList[0].wndVehicleCode"></td>
                    <td ng-bind="notice.detailList[0].wndVehicleName"></td>
                    <td ng-bind="notice.detailList[0].wndMaterialCode"></td>
                    <td ng-bind="notice.detailList[0].wndMaterialName"></td>
                    <td ng-bind="notice.detailList[0].wndColorCode"></td>
                    <td ng-bind="notice.detailList[0].wndColorName"></td>
                    <td ng-bind="notice.wnhCustomerName"></td>
                    <td ng-bind="notice.detailList[0].wndProducteTime"></td>
                    <td ng-bind="notice.detailList[0].wndEngineNo"></td>
                    <td ng-bind="notice.detailList[0].wndCertification"></td>
                    <td ng-bind="notice.detailList[0].wndOfflineTime"></td>
                    <td ng-bind="notice.detailList[0].wndGearBoxNo"></td>
                    <td ng-bind="notice.odRemark"></td>
                </tr>
                </tbody>
            </table>
        </div>
        <div class="admin-table-page" style="text-align: center;">
            <div id="pages" class="page">
            </div>
        </div>
    </div>
</div>